package com.bjkcst.baselib.protocolparse;

import com.bjkcst.baselib.protocolparse.endian.Endian;

/**
 * @author: zgx
 * @email: zhougaoxing@bjkcst.com
 * @date: 2022/10/19
 * @describe:
 */

public class ProtocolConfig {
    /*** 默认字节序 */
    private static Endian DEFAULT_ENDIAN = Endian.BIG_ENDIAN;

    /**
     * 获取对应字节序
     *
     * @return DEFAULT_ENDIAN
     */
    public static Endian getDefaultEndian() {
        return DEFAULT_ENDIAN;
    }

    /**
     * 设置默认字节序
     *
     * @param defaultEndian Endian
     */
    public static void setDefaultEndian(Endian defaultEndian) {
        DEFAULT_ENDIAN = defaultEndian;
    }
}
